Skip to content

Instantly share code, notes, and snippets.

@rpavlik
rpavlik / settings.json
Last active March 30, 2026 23:33
Go away copilot and other slop machines (in vscode)
{
// go away copilot and other ai slop machines
"accessibility.verboseChatProgressUpdates": false,
"accessibility.verbosity.inlineChat": false,
"accessibility.verbosity.panelChat": false,
"accessibility.verbosity.terminalChatOutput": false,
"ansible.lightspeed.suggestions.waitWindow": 360000,
"chat.agent.codeBlockProgress": false,
"chat.agent.enabled": false,
"chat.agent.maxRequests": 0,
@jdforsythe
jdforsythe / connect.ps1
Last active March 30, 2026 23:31
Remote Desktop Auto Login Powershell Script
cmdkey /list | ForEach-Object{if($_ -like "*target=TERMSRV/*"){cmdkey /del:($_ -replace " ","" -replace "Target:","")}}
echo "Connecting to 192.168.1.100"
$Server="192.168.1.100"
$User="Administrator"
$Password="AdminPassword"
cmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password
mstsc /v:$Server
#!/bin/bash
set -euo pipefail
# Delete local branches whose head commit is the same as that of a PR that has
# been merged.
DRY_RUN=0
DEBUG=0
@bhaidar
bhaidar / laravel-13-scaffolding-guide.md
Created March 30, 2026 21:22
Laravel 13 Project Scaffolding Guide - Complete setup with Vue 3, Inertia.js v3, Tailwind CSS v4, TypeScript, Sail, and modern dev tools

Laravel 13 Project Scaffolding Guide

This guide provides a comprehensive setup for a modern Laravel 13 application with the latest stack technologies.

Core Stack Components

The setup includes:

Backend: Laravel 13 running on PHP 8.5 via Docker containers, with Laravel Breeze providing Vue 3, Inertia.js v3, and TypeScript support.

Claude Code — Status Line Setup Prompt

Cole esta prompt no Claude Code para configurar a status line automaticamente. Funciona em Windows e macOS.


Prompt

Configure a status line para o Claude Code com as seguintes especificações:
@jdtsmith
jdtsmith / org_emphasis_cursor_inside.el
Last active March 30, 2026 23:16
org hidden emphasis: change cursor when "inside"
;; `org-hide-emphasis-markers' is great, but when point is at the ends
;; of an emphasized piece of text, it's often not clear if you're in
;; position [A] or [B] (or, [X] or [Y]):
;;
;; [A]_[B]italicized[X]_[Y]
;;
;; This is frustrating, because sometimes you want to add text inside,
;; and sometimes you want to add adjacent text outside. The code below
;; tweaks `org' to help with with that problem, in two ways:
;;
@ateucher
ateucher / harmony_tempo.R
Created March 30, 2026 17:38 — forked from allanjust/harmony_tempo.R
Use harmony to subset TEMPO data from R
# demo of downloading a single spatially subset granule from TEMPO
# using harmony API
# Need dev version of earthdatalogin for edl_search() to work,
# install with:
# remotes::install_github("boettiger-lab/earthdatalogin")
library(earthdatalogin)
library(httr2)
# space-time bounds (API formatted strings)
@wavezhang
wavezhang / java_download.sh
Last active March 30, 2026 23:15
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
@nerdalert
nerdalert / Netfilter-IPTables-Diagrams.md
Last active March 30, 2026 23:13
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.

@coleman8er
coleman8er / garmin-browser-auth.py
Created March 21, 2026 14:53
Get Garmin OAuth tokens via Playwright browser login — bypasses the 429-blocked SSO endpoint
#!/usr/bin/env python3
"""
Get Garmin OAuth tokens via real browser login (Playwright).
Bypasses the 429-blocked SSO programmatic login endpoint.
Usage:
uv run --with playwright --with requests-oauthlib scripts/garmin-browser-auth.py
First time setup (installs Chromium):
uv run --with playwright python -m playwright install chromium